package com.yxx.service;

import com.yxx.medicinepojo.vo.OrderReportStatisticVO;
import com.yxx.medicinepojo.vo.SalesTop10ReportStatisticVO;
import com.yxx.medicinepojo.vo.TurnoverReportStatisticVO;
import com.yxx.medicinepojo.vo.UserReportStatisticVO;

import javax.servlet.http.HttpServletResponse;
import java.time.LocalDate;

/**
 * @author yuxiangxun
 * @date 2024/9/17
 * @apiNote
 */
public interface ReportService {
    /**
     * 营业额统计
     * @param begin
     * @param end
     * @return
     */
    TurnoverReportStatisticVO getTurnoverStatistics(LocalDate begin, LocalDate end);

    /**
     * 用户统计
     * @param begin
     * @param end
     * @return
     */
    UserReportStatisticVO getUserStatistics(LocalDate begin, LocalDate end);

    /**
     * 销量排名top10
     * @param begin
     * @param end
     * @return
     */
    SalesTop10ReportStatisticVO getTop10Statistics(LocalDate begin, LocalDate end);

    /**
     * 订单统计
     * 统计指定时间区域内容的订单数据
     * @param begin
     * @param end
     * @return
     */
    OrderReportStatisticVO getOrdersReportStatistics(LocalDate begin, LocalDate end);

    /**
     * 中西药购销运营数据表导出
     * @param response
     */
    void chineseWesternMedicineReportExport(HttpServletResponse response);
}
